/**$Licence:
 *   Use this however/wherever you like, just don't blame me if it breaks anything.
 *   Copyright (C) 2008 - 2011 xingsheng.zhu@gmail.com All rights reserved.
 */
package com.blazemina.commonchain;

import org.apache.commons.chain.Command;
import org.apache.commons.chain.Context;
import org.apache.commons.chain.impl.ChainBase;
import org.apache.commons.chain.impl.ContextBase;

/**
 * @author JackChu
 * @version 1.0.0 2011-12-22 下午8:02:45
 */
public class CommandChain extends ChainBase{
	
	public CommandChain(){
		addCommand(new TestDriveVehicleCommand());
		addCommand(new GetCustomerInfoCommand());
	}
	
	public static void main(String[] args) throws Exception{
		Command process = new CommandChain();
		Context ctx = new ContextBase();
		process.execute(ctx);
	}

}
